package pattern.rmiproxy;

public class GumballMonitor
{
	GumballMachineRemote machine;
	public GumballMonitor(GumballMachineRemote machine)
	{
		this.machine=machine;
	}
	public void report()
	{
		try
		{
			System.out.println(machine.getLocation());
			System.out.println(machine.getCount());
		}
		catch (Exception e)
		{
		}
	}
}
